package tt.dz.entity.system;

import java.io.Serializable;
import java.util.Date;

import tt.dz.dao.base.BasisDao;
import tt.dz.util.annotation.Ignore;
import tt.dz.util.annotation.PrimaryKey;
import tt.dz.util.annotation.Table;

/**
 * 角色授权
 * <p>
 * 修改时间：2015年12月16日
 * <p>
 * 修改人：谢龙飞
 * <p>
 * 修改内容：添加注释，主键注解，实现序列化接口，实体类注释
 */
@Table(name = "oms_role_auth")
public class OmsRoleAuth implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 角色ID */
	@PrimaryKey
	private String role_id;
	/** url_id */
	@PrimaryKey
	private String url_id;

	/** 记录时间 */
	private Date create_time;
	/** 创建人id */
	private String create_oper_id;
	/** 更新时间 */
	private Date update_time;
	private String update_oper_id;

	/** 有效标记 */
	private Integer valid_flag;
	
	/**关联角色信息*/
	@Ignore
	private OmsRole role;
	
	/**关联权限资源*/
	@Ignore
	private OmsUrlList urlList;

	public void setRole_id(String role_id) {
		this.role_id = role_id;
	}

	public String getRole_id() {
		return role_id;
	}

	public void setUrl_id(String url_id) {
		this.url_id = url_id;
	}

	public String getUrl_id() {
		return url_id;
	}

	public void setValid_flag(Integer valid_flag) {
		this.valid_flag = valid_flag;
	}

	public Integer getValid_flag() {
		return valid_flag;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_oper_id(String create_oper_id) {
		this.create_oper_id = create_oper_id;
	}

	public String getCreate_oper_id() {
		return create_oper_id;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_oper_id(String update_oper_id) {
		this.update_oper_id = update_oper_id;
	}

	public String getUpdate_oper_id() {
		return update_oper_id;
	}
	public OmsRole getRole() {
		return role;
	}
	public void setRole(OmsRole role) {
		this.role = role;
	}
	public OmsUrlList getUrlList() {
		return urlList;
	}

	public void setUrlList(OmsUrlList urlList) {
		this.urlList = urlList;
	}

	public static void main(String[] args) {
		OmsRoleAuth omsRoleAuth = new OmsRoleAuth();
		omsRoleAuth.setRole_id("1");
		new BasisDao<>().findExample(omsRoleAuth,null,null,null,null);
	}
}
